package com.imooc.trading_system.model;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author Feng zhaoxi
 * @since 2022-04-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("product")
public class ProductDO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "product_id", type = IdType.AUTO)
    private Integer productId;

    /**
     * 产品标题
     */
    private String productTitle;

    /**
     * 产品库存
     */
    private Integer productStock;

    /**
     * 产品单价
     */
    private BigDecimal productPrice;

    /**
     * 产品描述
     */
    private String productDesc;

    /**
     * 产品封面图
     */
    private String productCoverImg;

    /**
     * 产品详情图片
     */
    private String productDetailImg;

    /**
     * 产品状态
     */
    private Integer productStatus;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    private Integer publishUserId;


}
